﻿using System.Drawing;
using System.Windows.Forms;

namespace Editor.ModeToolbars
{
    [System.ComponentModel.DesignerCategory("code")]
    [System.Windows.Forms.Design.ToolStripItemDesignerAvailability(System.Windows.Forms.Design.ToolStripItemDesignerAvailability.ToolStrip | System.Windows.Forms.Design.ToolStripItemDesignerAvailability.StatusStrip)]
    public class ToolStripModeEnvironment : ToolStripControlHost
    {
        internal ModeEnvironment ModeEnvironment
        {
            get { return Control as ModeEnvironment; }
        }

        public ToolStripModeEnvironment() :
            base(CreateControlInstance())
        {
        }

        private static ModeEnvironment CreateControlInstance()
        {
            ModeEnvironment c = new ModeEnvironment();
            c.BackColor = Color.Transparent;
            return c;
        }
    }
}
